<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="org.codehaus.groovy.grails.commons.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
    <title><g:message code="auth.title.login" /></title>
    <link rel="stylesheet" href="${createLinkTo(dir:'css', file:'login.css')}" />
    <link rel="stylesheet" href="${createLinkTo(dir:'css', file:'userBar.css')}" />
  </head>
  <body>
     
    <div id="wrapper">
      <div id="outer">
        <div id="formwrap">
        
          <ul class="userBar">
            <g:langSelector>
              <li ${(session.locale.getLanguage()==it)?'class="active"':''}>
                <a href="?sessionLang=${it}"><g:message code="common.lang.${it}" /></a>
              </li>
            </g:langSelector>
          </ul>
        
          <g:form url="[action:'login']" method="post" id="formLogin">
            <a href="http://code.google.com/p/template-editor-open-ehr-gen/" target="_blank"><img src="${resource(dir:'images', file:'template_designer_logo.png')}" alt="Template Designer Open EHR-Gen" style="border: solid 1px black" /></a>
            <g:if test="${flash.message}">
              <div class="error"><g:message code="${flash.message}" /></div>
            </g:if>
            <table>
              <tr>
                <th><g:message code="auth.login.label.userid" /></th>
                <td><input type="text" id="nombre" name="nombre" size="24" /></td>
              </tr>
              <tr>
                <th><g:message code="auth.login.label.password" /></th>
                <td><input type="password" name="password" size="24" /></td>
              </tr>
              <tr>
                <th></th>
                <td>
                  <input type="submit" name="doit" value="${message(code:'auth.login.action.signin')}" />
                </td>
              </tr>
            </table>

          </g:form>
        </div>
      </div>
    </div>
  </body>
</html>